import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);



export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      meta: { title: '缴费查询' },
      component: (resolve) => { require(['@/pages/payment'], resolve) }
    },
    {
      path: '/no-result',
      name: 'no-result',
      meta: { title: '查询结果' },
      component: (resolve) => { require(['@/pages/no-result'], resolve) }
    },
    {
      path: '/pay',
      name: 'pay',
      meta: { title: '停车缴费' },
      component: (resolve) => { require(['@/pages/pay'], resolve) }
    },
    {
      path: '/success',
      name: 'success',
      meta: { title: '缴费结果' },
      component: (resolve) => { require(['@/pages/success'], resolve) }
    },
  ]
})
